package com.smartcampusbackend.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("repair_application")
public class RepairApplication {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String applicationNo;
    private Integer applicantId;
    private String applicantName;
    private String applicantRole;
    private String repairType;
    private String location;
    private String description;
    private String photoUrls; // JSON格式存储照片URL列表
    private String status; // 待审批/已分配/维修中/完成/已取消
    private Integer assigneeId;
    private String assigneeName;
    private LocalDateTime assignTime;
    private LocalDateTime startTime;
    private LocalDateTime completeTime;
    private LocalDateTime cancelTime;
    private String cancelReason;
    private String priority; // 紧急/普通
    private String estimatedDuration;
    private String actualDuration;
    private String remark;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
} 